package com.oocl.service;



import java.util.List;

import com.oocl.dto.FoodDTO;
import com.oocl.exception.MyException;
import com.oocl.pojo.Food;

public interface FoodService {
	public List<Food> loadAll() throws MyException;
	
    public List<Food> loadFoodsByIcnum(String mid) throws MyException;
    
    public List<Food> loadFoodsByType(String icnum,String type) throws MyException;
    
    public String addFood(Food f) throws MyException;
    
    public int update(Food f) throws MyException;
    
    public int delete(String fid) throws MyException ;
    
    public Food loadOne(String fid) throws MyException ;
    
    public List<FoodDTO> loadFoodDTOs(String mid,String type) throws MyException;
}
